package com.offcn.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: wy
 * @Date: 2022/9/23 17:41
 */
@Component
public class listener01 {

    @RabbitListener(queues = "test.queue")
    public void receive(String message){
        System.out.println(message);
    }
}
